/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-04 15:56:04
 * 资源模型
 */
import { Table, Column, Model, BelongsToMany } from 'sequelize-typescript'
import Role from './role';
import Role_Resource from './role-resource';

@Table
export default class Resource extends Model {
    @Column
    url: string;

    @BelongsToMany(() => Role, () => Role_Resource)
    roles: Role[]
}

